import request from '@/utils/request'

// 员工列表
export function getList (params) {
  return request({
    url: '/back/xsStaff/getStaffListByPage',
    method: 'get',
    params
  })
}

// 删除员工
export function deleteStaffById (params) {
  return request({
    url: '/back/xsStaff/deleteStaffById',
    method: 'delete',
    params
  })
}

//新增加员工
export function addStaff (params) {
  return request({
    url: '/back/xsStaff/addStaff',
    method: 'post',
    params
  })
}

//编辑员工
export function updateStaffById (params) {
  return request({
    url: '/back/xsStaff/updateStaffById',
    method: 'put',
    params
  })
}

//导出员工excel
export function exportExcel (params) {
  return request({
    url: '/back/xsStaff/exportExcel',
    method: 'get',
    params
  })
}
